package cn.easybuy.entity;

import java.util.List;


public class Page1 {
	//��ǰҳ
	private int currendPage=1;
	//��ҳ��
	private int countPage=1;
	//ҳ���С
	private int sizePage;
	//����Ϣ��
	private int count;
	//��ǰҳ�漯��
	private List<search> sizeList;
	public int getCurrendPage() {
		return currendPage;
	}
	public void setCurrendPage(int currendPage) {
		this.currendPage = currendPage;
	}
	public int getCountPage() {
		return countPage;
	}
	public void setCountPage(int countPage) {
		this.countPage = countPage;
	}
	public int getSizePage() {
		return sizePage;
	}
	public void setSizePage(int sizePage) {
		this.sizePage = sizePage;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
	if(count>0){
		this.count = count;
		/**
		 * ������ҳ��
		 */
		this.countPage=this.count%this.sizePage == 0 ? (this.count/this.sizePage) : (this.count/this.sizePage+1);
	}
		}
	public List<search> getSizeList() {
		return sizeList;
	}
	public void setSizeList(List<search> sizeList) {
		this.sizeList = sizeList;
	}
}
